<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-merchant-edit" th:object="${merchant}">
            <input id="iD" name="iD" th:field="*{iD}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">无卡提现费：</label>
				<div class="col-sm-8">
					<input id="procedureFee" name="procedureFee" th:field="*{procedureFee}" class="form-control" type="text" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">无卡费率：</label>
				<div class="col-sm-8">
					<input id="wkRate" name="wkRate" th:field="*{wkRate}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">微信支付宝费率：</label>
				<div class="col-sm-8">
					<input id="rATE" name="rATE" th:field="*{rATE}" class="form-control" type="text" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">养卡费率提现费：</label>
				<div class="col-sm-8">
					<input id="ykRate" name="ykRate" th:field="*{ykRate}" class="form-control" type="text" >
				</div>
			</div>

		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "system/merchant"
		$("#form-merchant-edit").validate({
			rules:{
				procedureFee:{
					required:true,
				},
				wkRate:{
					required:true,
				},
				rATE:{
					required:true,
				},
				ykRate:{
					required:true,
				},

			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-merchant-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
